﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(LoadingMetadata))]//使用LoadingMetadata对Loading进行数据验证
    public partial class Loading : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class LoadingMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "唯一标识", Order = 1)]
			public object RowGuid { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "创建人", Order = 2)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object CreateUser { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "创建时间", Order = 3)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "类型", Order = 4)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object Type { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "用户", Order = 5)]
			 
			public object UserGuidContent { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "是否显示", Order = 6)]
            [StringLength(50, ErrorMessage = "长度不可超过50")]
            public object IsDisplay { get; set; }
    }


}

